<template>
  <div class='page-container'>兄弟组件2 :{{ state.msg }}</div>
</template>
<script setup lang='ts'>
/**
 * 模块引入
 */
import { reactive, ref, getCurrentInstance } from 'vue';
import { useRouter, useRoute } from 'vue-router';
const router = useRouter();
const route = useRoute();
const { proxy } = getCurrentInstance()

/**
 * 数据
 */
const state = reactive({ msg: '' });
/**
 * 功能方法
 */
proxy.$Bus.on('brother1-send-data', (res) => {
  state.msg = res
})


</script>
<style lang='scss' scoped>
.page-container {}
</style>